package org.semanticflash.rdf.vocab
{
	
	import org.semanticflash.rdf.values.IRI;
	

	/**
	 * 
	 * http://xmlns.com/foaf/0.1/
	 * 
	 * @author aldo.bucchi@gmail.com
	 * 
	 */		
	public class Vfoaf extends Vocabulary
	{
		
		public static const ns:Namespace = new Namespace( "foaf", "http://xmlns.com/foaf/0.1/" );		
		
		public static const _Person						:IRI = iri( ns, "Person" );
		
		public static const _depiction					:IRI = iri( ns, "depiction" );
		public static const _img							:IRI = iri( ns, "img" );		
		public static const _gender						:IRI = iri( ns, "gender" );
		public static const _birthday						:IRI = iri( ns, "birthday" );
		public static const _title						:IRI = iri( ns, "title" );
		public static const _family_name					:IRI = iri( ns, "family_name" );
		public static const _name							:IRI = iri( ns, "name" );
		public static const _homepage						:IRI = iri( ns, "homepage" );
		public static const _mbox							:IRI = iri( ns, "mbox" );
		public static const _mbox_sha1sum					:IRI = iri( ns, "mbox_sha1sum" );
		public static const _nick							:IRI = iri( ns, "nick" );
		public static const _phone						:IRI = iri( ns, "phone" );
		public static const _workplaceHomepage			:IRI = iri( ns, "workplaceHomepage" );
		public static const _pastProject					:IRI = iri( ns, "pastProject" );
		public static const _currentProject				:IRI = iri( ns, "currentProject" );
		public static const _knows						:IRI = iri( ns, "knows" );
		public static const _surname						:IRI = iri( ns, "surname" );
			
	
	
		/**
		 * 
		 * Convenience method. Returns true if IRI is foaf:img or foaf:depiction.
		 * 
		 * @param iri
		 * @return 
		 * 
		 */	
		public static function isImage( iri:IRI ):Boolean
		{
			switch ( iri )
			{
				case _depiction :
				case _img :
					return true;
				break;
			}
			return false;
		}
	
	
	}
	

	
	
}